<%@ page contentType="text/html; charset=utf-8" %>
<%@ page import="cn.lily.com.configure.util.ESBSetting"%>
<%@ page import="cn.lily.inst.web.frames.FrameConfig" %>
<%@ page import="cn.lily.inst.web.security.SystemManager" %>
<%@ page import="cn.lily.web.util.context.WebContext" %>
<%@ page import="cn.lily.esb.context.AuthEntity" %>
<%@ page import="cn.lily.com.lang.BusinessDate" %>
<%
    String rand = (String)session.getAttribute("rand");

	request.getSession().invalidate();
	Cookie[] cookies=request.getCookies();
	if(null!=cookies){
	    for(int i=0;i<cookies.length;i++){
	        if("JSESSIONID".equalsIgnoreCase(cookies[i].getName())){
	            cookies[i].setMaxAge(0);
	            response.addCookie(cookies[i]);
	        }
	    }
	}
	session = request.getSession(true);
	session.setAttribute("rand", rand);
	
    response.addHeader("Cache-Control", "no-store");
	response.addHeader("Pragma", "no-cache");
	String referer=request.getHeader("Referer");
	
	if((referer!=null) &&(referer.trim().endsWith(ESBSetting.getString("appCode")+"/"))|| (referer!=null) &&(referer.trim().endsWith("login.jsp")) || (referer!=null) &&(referer.trim().endsWith("homePage.jsp"))){
	}else{
		response.sendRedirect("/"+ESBSetting.getString("appCode")+"/login.jsp");
		return;
	}
%>
<%@ include file="security/loginassistor.jsp"%>
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>后台首页</title>
    
    <%@ include file="resource/head_res.jsp"%>
    
    <%
    	
    	AuthEntity authEntity = (AuthEntity) request.getSession().getAttribute(WebContext.LOG_AUTH_CONTEXT);
    	String name = authEntity.getOperatorName();
    	String ico = "/" + ESBSetting.getString("appCode") + authEntity.getOperIco();
    
    %>
    
  </head>
  <body class="zip tall">
  
    <div class="layui-layout layui-layout-admin">
      <div class="layui-header">
      	
        <!-- 图标部分 -->
        <div class="layui-logo">
          <img src="/<%=ESBSetting.getString("appCode")%>/public/images/skin_layui/logo/logo.png" alt="">
        </div> 
        <button id="menu-btn" class="layui-layout-left layui-btn layui-btn-primary layui-btn-mini">
          <i class="icon-align-justify"></i>
        </button>
        
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left system-list" id="portal-system"></ul>
        
        <ul class="layui-nav layui-layout-right">
         <!--  <li class="layui-nav-item">
            <a href="">系统消息<span class="layui-badge-dot"></span>
            </a>
          </li> -->
          <li id="Fullscreen" class="layui-nav-item">
            <a href="javascript:void(0);"> 进入全屏</a>
          </li>
          <li class="layui-nav-item">       
            <a href="javascript:;">        	 
            	分辨率
            </a>
            <dl class="layui-nav-child">
              <dd class="layui-this">
                <a class="system-screen-auto" href="javascript:;">自适应</a>
              </dd>
              <dd>
                <a class="system-screen-zip-tall" href="javascript:;">高压缩</a>
              </dd>
              <dd>
                <a class="system-screen-zip-mid" href="javascript:;">微压缩</a>
              </dd> 
            </dl>
          </li>
          <li class="layui-nav-item">
            <a href="javascript:;">
              <img src="<%=ico%>" class="layui-nav-img"><%=name%>
            </a>
            <dl class="layui-nav-child">
              <dd>
                <a class="system-portal-user" href="javascript:;">基本资料</a>
              </dd>
              <dd>
                <a class="system-portal-pwdreset" href="javascript:;">密码修改</a>
              </dd> 
            </dl>
          </li>
          <li class="layui-nav-item system-portal-exit">
            <a href="javascript:void(0);">退出</a>
          </li>
        </ul>
      </div>
      
      <!-- 侧边按钮区域 -->
      <div class="layui-side layui-bg-black ">
        <div class="layui-side-scroll"></div>
      </div>
      
      <!-- 信息存储区域 -->
      <div class="layui-body" style="overflow-y:hidden;"></div>
      
      <!-- 底部固定区域 
      <div class="layui-footer">   
        © Copyright 2017 All rights reserved by: 青岛信安智融科技有限公司
      </div> -->
      
    </div>
    
	<%@ include file="resource/body_res.jsp"%>
	
  </body>
  
</html>
